#ifndef PLANE_H
#define PLANE_H

#include "glm/glm.hpp"

typedef struct pl {
    glm::vec3 normal;
    float distance;

    /* only call this if check_collide == true */
    glm::vec3 collide(glm::vec3 prev, glm::vec3 pos);

    bool check_collide(glm::vec3 prev, glm::vec3 pos);
    /* -1 if "beneath" surface
     *  0 if on surface
     *  1 if "above" surface
     */
    int sgn(glm::vec3 pos);
} Plane;


#endif

